<template>
    <div class="photodata">
    <h2 class="phototitle">{{ photodata.title }}</h2>
    <hr>
    <div class="content" v-html="photodata.content"></div>
    </div>
   
</template>

<script>

export default {
    data() {
        return {
         id:this.$route.params.id,
         photodata:[]   
        };
    },
    created(){
        this.getPhotodata();
    },
    methods: {
        getPhotodata(){
            this.$http.get('api/goods/getdesc/'+this.id).then(result=>{
                if(result.body.status ===0){
                    this.photodata = result.body.message[0]
                }else{
                    Toast("加载详细信息失败。。。");
                }
            })
        }
    },
  
};
</script>

<style lang="scss">
.photodata{
     padding: 5px;   
    .phototitle{
        font-size: 16px;
        text-align: center;
        margin:15px 0;
        color: red;
    }
    .content{
        img{
            width: 100%;
        }
    }
    
    

}
</style>
